<%@ page contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<link rel="stylesheet" href="${pageContext.request.contextPath}/statics/ztree/css/zTreeStyle/zTreeStyle.css"
      type="text/css">
<div class="pageContent">
	<form method="post" id="form" action="${pageContext.request.contextPath}${requestScope.record ==null ?'/shop/shop/insert' :'/shop/shop/update' }" class="pageForm required-validate" onsubmit="return validateCallback(this, dialogAjaxDone);">
		<div class="pageFormContent" layoutH="56">
			<!-- 关闭窗口 -->
			<input type="hidden" name="callbackType" value="closeCurrent" />
			<!-- 隐藏表单 -->
			<c:if test="${requestScope.record !=null}">
				<input type="hidden" name="shopId" value="${requestScope.record.shopId}" />
			</c:if>
			<p>
				<label>店铺名称</label> <input name="shopName" class="required" maxlength="45" type="text" value="${requestScope.record.shopName}" />
			</p>
            <p>                                                                                                                                     
            	<label>联系人</label> <input name="contacts" class="required" maxlength="45" type="text" value="${requestScope.record.contacts}" /> 
            </p>  
            <p>                                                                                                                                     
            	<label>联系人号码</label> <input name="contactNumber" class="required phone" maxlength="11" type="text" value="${requestScope.record.contactNumber}" /> 
            </p>                                                                                                                                   
			<p>
				<label>手机号码</label> <input type="text" name="mobilePhone" class="required phone" maxlength="11" alt="" value="${requestScope.record.mobilePhone}" />
			</p>
			<p>
				<label>操作密码</label> <input type="text" name="operatingPwd" class="required" maxlength="45" type="text" value="${record.operatingPwd}" />
			</p>
			<p>
				<label>地址code</label> <input type="text" name="areaCode" class="required" maxlength="45" type="text" value="${record.areaCode}" />
			</p>
			<p>
				<label>地址name</label> <input type="text" name="areaName" class="required" maxlength="45" type="text" value="${record.areaName}" />
			</p>
			<p>
				<label>详细地址</label> <input type="text" name="address" class="required" maxlength="45" type="text" value="${record.address}" />
			</p>
			<p>
				<label>添加日期</label> 
				<input type="text" name="addTime" class="date" readonly="true" value="<fmt:formatDate value="${requestScope.record.addTime}" pattern="yyyy-MM-dd"/>"/>
				<a class="inputDateButton" href="javascript:;">选择</a>
			</p>
			<p>                                                                                                                         
				<label>邮政编码</label> <input type="text" name="postalCode" maxlength="6" value="${record.postalCode}" />        
			</p>                                                                                                                    
			<p>                                                                                                                     
				<label>属于</label> <input type="text" name="belongs" maxlength="100" value="${record.belongs}" />   
			</p>
			<p>                                                                                                                     
				<label>备注</label> <input type="text" name="remk" maxlength="50" value="${record.remk}" />      
			</p>
			<p>
				<label>店铺状态</label> <select name="shopState" class="combox required">
					<option value="1" ${requestScope.record.shopState==1?'selected':''}>启用</option>
					<option value="0" ${requestScope.record.shopState==0?'selected':''}>停用</option>
				</select>
			</p>
			<p>
				<label>是否允许新增商品</label> <select name="allowAddProduct" class="combox required">
					<option value="1" ${requestScope.record.allowAddProduct==1?'selected':''}>允许</option>
					<option value="0" ${requestScope.record.allowAddProduct==0?'selected':''}>不允许</option>
				</select>
			</p>
			<%-- <p>
				<label></label> <input name="employeePortrait" class="required" maxlength="45" type="text" value="${requestScope.record.employeePortrait}" />
			</p> --%>
			<div id="parameter" class="nowrap">
			</div>
			
			
			
			
		</div>
		<div class="formBar">
			<ul>
				<li><div class="buttonActive">
						<div class="buttonContent">
							<button type="submit">保存</button>
						</div>
					</div></li>
				<li>
					<div class="button">
						<div class="buttonContent">
							<button type="button" class="close">取消</button>
						</div>
					</div>
				</li>
			</ul>
		</div>
	</form>
</div>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/ztree/js/jquery.ztree.core.js"></script>
<script type="text/javascript" src="${pageContext.request.contextPath}/statics/ztree/js/jquery.ztree.excheck.js"></script>
 